<template>
  <div class="app-container">
    <div class="chat-window">
      <ChatHeader />
      <ChatMain />
      <ChatFooter />
    </div>
  </div>
</template>

<script setup>
import ChatHeader from './components/ChatHeader.vue'
import ChatMain from './components/ChatMain.vue'
import ChatFooter from './components/ChatFooter.vue'
</script>

<style>
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-size: 15px;
  color: #555;
}

.spring {
  flex: 1;
  width: 0;
}

.app-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-window {
  width: 100%;
  max-width: 540px;
  height: 80%;
  margin: 0 auto;
  background-color: var(--el-bg-color-page);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
}

@media screen and (max-width: 540px) {
  .chat-window {
    height: 100%;
  }
}
</style>
